package com.mida.bms.report.service;

import com.mida.bms.report.entity.DocStructDefinitionSpace;
import com.mida.bms.report.vo.DocStructDefinitionSpacePageVo;
import com.mida.bms.report.vo.DocStructDefinitionSpaceVo;
import com.mida.bms.report.vo.PageResultVo;
import com.mida.tool.common.result.ActionResult;
import com.mida.tool.common.result.ListResult;

import java.util.List;

/**
 * <h1>结构化模板定义空间服务</h1>
 * <p>
 *
 * @author jian.li on 2021/3/30 15:35
 */
public interface DocStructDefinitionSpaceService {

    ActionResult add(DocStructDefinitionSpaceVo docStructDefinitionSpaceVo);

    ActionResult update(DocStructDefinitionSpaceVo docStructDefinitionSpaceVo);

    ActionResult checkName(String name, Long defineSpaceSoid);

    ActionResult delete(long defineSpaceSoid);

    ListResult<PageResultVo<DocStructDefinitionSpaceVo>> findPage(DocStructDefinitionSpacePageVo vo);

    ActionResult updateStatus(Long status, Long defineSpaceSoid);

    ListResult<DocStructDefinitionSpaceVo> get(long defineSpaceSoid);

    ListResult<List<DocStructDefinitionSpace>> findAll(String searchData,Long hospitalSoid);

    ListResult<DocStructDefinitionSpaceVo> selectByDefineSpaceSoid(long defineSpaceSoid);
}
